package com.yidu.qianfeng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yidu.qianfeng.common.bean.finance.FinanceCondition;
import com.yidu.qianfeng.common.bean.finance.Income;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("incomeMapper")
@Mapper
public interface IncomeMapper extends BaseMapper<Income> {
    //分页查询收入
    public List<Income> selectAllIncome(int page, int limit);
    //新增收入
    public int insertIncome(Income income);
    //收入数据数量
    public int selectIncomeCount();
    //根据条件查询收入
    public List<Income> selectIncomeByCondition(FinanceCondition condition);
    //根据分站ID查询操作站点
    public String selectSubNameById(String empSubstId);

}
